package main

import (
	"github.com/gin-gonic/gin"
	"life/api"
	"life/config"
	"life/inits/mysql"
	"life/inits/redis"
)

func main() {
	config.InitViper()
	mysql.InitMysql()
	redis.InitRedis()
	r := gin.Default()
	api.Router(r)

	r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
